<docs>
---
order: 5
title: 隐藏箭头
---

## zh-CN

你可以通过 `:showArrow="false"` 隐藏 `j-collapse-panel` 组件的箭头图标。

</docs>

<template>
  <j-collapse v-model:activeKey="activeKey">
    <j-collapse-panel key="1" header="This is panel header with arrow icon">
      <p>{{ text }}</p>
    </j-collapse-panel>
    <j-collapse-panel key="2" header="This is panel header with no arrow icon" :show-arrow="false">
      <p>{{ text }}</p>
    </j-collapse-panel>
  </j-collapse>
</template>
<script lang="ts">
import { defineComponent, ref, watch } from 'vue';

export default defineComponent({
  setup() {
    const activeKey = ref(['1']);
    const text = `A dog is a type of domesticated animal.Known for its loyalty and faithfulness,it can be found as a welcome guest in many households across the world.`;

    watch(activeKey, val => {
      console.log('activeKey', val);
    });

    return {
      activeKey,
      text,
    };
  },
});
</script>
